#include <REGX52.H>
#include "Timer.h"
sbit Buzzer = P1 ^ 6;
void Timer0_Init() // 1毫秒@11.0592MHz
{
    TMOD &= 0xF0;
    TMOD |= 0x01;
    TF0 = 0;
    TR0 = 1;
    TL0 = 0xA4; 
    TH0 = 0xFE;
    ET0=1;  //开启中断
    EA=1;
    PT0=0;
}


void Timer0_Rountine()  interrupt 1
{
    TL0 = 0xA4; 
    TH0 = 0xFE;

    Buzzer = !Buzzer;
}

